package One;

public class Test {
    public static void main(String[] args) {
        Employee[] employee = new Employee[]{
                new Employee("张三","1900-1-1","2001-1-1","2006-5-1"),
                new Employee("李四","1996-1-1","2019-1-1","2020-5-5"),
                new Employee("王五","1997-7-5","2019-8-15","2021-8-10"),
                new Employee("赵六","1988-6-7","2010-10-8","")
        };

        System.out.println(employee[2].getAge(employee[2].getBirthday()));
        System.out.println(employee[3].workAge(employee[3].getInTime(),employee[3].getOutTime()));
        System.out.println(employee[2].toString());


        Project p = new Project("修建学校","2020-4-1","2024-9-8");
        System.out.println(p.workPeriod(p.getBeginTime(),p.getOverTime()));
        System.out.println(p.toString());
    }
}
